logically break out splitting functionality from rails inclusion.