Removes unneccessary views and routes