CRISPR-Cas functional specialization in targeting mobile genetic elements