Refactor schools helper