Add WarningMessages to PipelineType

In order to display the deprecation warnings in the pipeline page, we need to expose warning_message in PipelineType. This will also help with making the warning system more generic.

This is a follow-up that is part of this epic: &6859 (closed) and this issue: #346578 (closed)