Broke the module up into subclasses and added the appropriate scope lookup functions to the ERB template for elasticsearch.yml.