CSS template custom extension refactoring.