Optimize CustomAbility specs to reduce build times
What does this MR do and why?
This is a backport of !160921 (merged) to the %17.2 stable branch.
MR acceptance checklist
Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.