Removing useless properties from the user and room objects.