public function removeViewFromPath($path)
    {
        $folderBits = explode('/', $path);
        if (strtolower(end($folderBits)) === 'views') {
            array_pop($folderBits);
            $path = implode('/', $folderBits);
        }

        return $path;
    }