Factor out QuintileBin functionality