Reduced the cyclomatic complexity of the ArrayLoader