Refactored designer directives.