Move post type slug retrieval into it’s own function.
Create public template tag for post type slug retrieval.
Use post type slug template tag for “clear all” link.