XSLT refactoring