refactoring PapillonCore

separate HA processing and transLeaf