Removed _get_caps_key function