Moved fragment flags from messages to config.yml, and refactor to support that.