Refactoring nom factorial