Little concerned that this is all order dependent now on what is defined first, alt_media types or content types. further this method needs some SRP clean up. I think content types method should just store them in ivar on class some other method handle all the registry stuff.