Extract outer functionality into derived classes in one atp.d module.
Almost compiled.
Fix submodule relation.