Refactor implementation root into a module and class-level accessor