Refactor factorials and provide a scalable impl