Refactor early returns.