Get reference to indexing only if enabled
Formatting and organized imports