Move link obj generation to separate method

This is in prep for building nested resource support.