Moved task loading and registration to a separate module, renamed some global method which seemed confusing as the name suggested private methods.