Making for of the 3d view reusable for all places that are implementing redundant stuff.
Getting rid of dead code.
Getting rid of warnings