ResourceSerializer.relationships_hash: refactor out duplicate code
ResourceSerializer.relationships_hash: refactor out duplicate code

jsmestad/jsonapi-resources,harisadam/jsonapi-resources,cerebris/jsonapi-resources,kevintraver/jsonapi-resources,togglepro/jsonapi-resources,senid231/jsonapi-resources