I write code using two passes. First pass is WET and full of leaky abstractions, to test which API calls I would be making. Second pass I delete it all and rewrite it DRY and beautiful. If you don't already try incorporate a second pass in your work flow.