Adding logic to prevent potential call to non-existent method on visitor in the UserAvatarSerializationListener
Removing unused trainer methods in user ApiControllerTest