make theme renamer code as similar as possible to plugin renamer for later refactoring