Remove unnecessary path to view