Remove unnecessary method get_primary_keys