Refactor the methods for creating median scores