Rename method() to usingMethod() for createIndex().