Refactoring extreure constant factorial