Issue #2973227 by jibran, benjy, alexpott, Mile23, Sam152, vaplas, larowlan: Move UI helper functions from BTB into the traits