Tiny refactoring steps for the monolithic viewport draw() method