Refactors how UPDATE_CSS_OUTPUT event is hooked up.