Move filter registration out of CPT constructor

Fixes #42.