Refactor compiler to use FileUtils::removeTwigExtension()