refactor coffee