That was actually my first attempt. However, I don't see many similarities between both functions - one is focusing on platform,  the other on capability details. Also, I prefer to keep capability-related things together, i.e. caps compatibility check being part of the CapsList class.