Removing transitive references from aspnetcore50 to unblock build