Revert "Extract linked resources to APIObject and use it everywhere"

This reverts commit 71818f81b676f5ba6b4c9578044b9da9255b7b00.