refact CmsRelatedBehavior