When writing scientific papers, one has to use a predefined template, e.g., from IEEE or Springer. There are several restrictions to obey, e.g., the document class to use, the bibtex style or the definition of an abstract. The task of switching to a specific template could be automated by means of text refactorings.