refactor: more line breaks

And remove some functions, and shorter function name.
refactor: move method to prototype
refactor: extract local variable
refactor: limit lines to 80 characters

Restrictions are liberating!