Refactor constructEncapsulatedCss to utils.
Refactor constructEncapsulatedCss to utils.

PiperOrigin-RevId: 188939199

angulardart/angular_components,angulardart/angular_components,angulardart/angular_components