Puppet Module: Refactoring autocomplete searches