Cleaning up template and CSS definitions.