Move functionality specific to resource entities to separate API adapter class.