Fix typo
Attempt to optimise createDefinitionFromConfig() paths
Removed trailing comma
Moved concrete resolution into new method
Updated docblock comment
Removed unnecessary assignment
Fixes spacing