Refactor it as a separator function.