Separation of the hierarchical classifier function into other functions