An offering to the optimization and refactoring gods