Refactoring ObjectPathItemLoader and fix some missing license headers.