Add staticmethod to factory