Move if object to the top
Save result of calling associated_object in a local var
Associations doesn't depend on the source serializer anymore :)