This is actually a fantastic idea; I really hope they integrate it into core.

A standardized API for this would really help consolidate everything for my own plugins, especially since, for example, consent is only needed if the site owner enables certain features.