ember refactor