Initial iteration for refactoring the reorderer.