Document and refactor specialized drawing functions.

These drawing functions should only be called by a single function
and so have been moved inside of the caller.