Would it be possible to move class definition at the end of the module to keep <code>getNode</code> logic and the definition in separate for better readability?