Custom handler for generating vocabularies