Refactor out the shared logic in the RESTSerializer's extractSingle
and extractArray into a SideloadMixin.