Media and Albums stats in Message User Info

I've been trying to remove the lines for Media and Albums in the message user info field that appears beside members' messages. I can't find any control under Style Properties: Message Elements, Users: Custom user fields or Gallery: Options, and it seems to be part of the custom user field hook so I can't delete in templates.

Where is the control for this?