Refactor : use getattr to get optional AUTH_USER_MODEL_FACTORY setting