One of my past manager told me that the trick of making a boring job interesting is to introduce a layer of abstraction to the task.
For example, if you have to right a lot of boiler plate code then write a code generator.
Edit: your example seems like a good instance of applying this _well_, but I would not tell anybody this as general advice.