Factorized create_index_sql expression