Use entity factory in PasswordGrant