More code reviews and perhaps code ownership.
If you just hack some random code then you don't care as much as for the code you "own". If it's your responsibility to maintain one module of the project, you want to shine.
And code reviews is a time when you show your code.