Refactor existing code.