vulkan: Refactor and tidy extension handling.