Do refactor.