This functionality could be added into the demanded bits pass however is kept separate to limit maintenance overhead.
The pass can be used to convert capability operations to integer ones where the metadata is not demanded (that is setting the metadata to null).