Refactor code, remove unused views and libs.