(PUP-2344) Extract methods to make flow clearer
There were multiple levels happening in the different methods and some
LoD violations. By extracting some methods onto the LoaderModuleData
class and pulling out methods for the different kinds of dependency
loader creations the flow becomes a little clearer.
This also removes the TODOs since I think that the current
implementation is the right way to go.