Refactor like logic.