Refactored process diagram loader to make use of multiple parse methods.