Refactors "init" logic to be more OO with a "context" object, rather
than procedural with a global "init" singleton.