[boxing-optimization] Refactoring: reordering methods to usage places and some renamings