protected function getScreen($screen)
    {
        if (is_string($screen) && function_exists('convert_to_screen')) {
            $screen = convert_to_screen($screen);
        }

        if ($screen instanceof \WP_Screen) {
            return [
                'id' => $screen->id,
                'post_type' => $screen->post_type
            ];
        }

        // Screen is still a string.
        return [
            'id' => $screen,
            'post_type' => $screen
        ];
    }