refactoring: then is legacy
coding convention
refactoring: this may look weird, but pretty common convention of ruby as alternative of maybe