This can be useful to avoid unnecessary boilerplate in various users of the CustomData API. Split from D14685 and D14769.