Bind directly to the member function that generates levels for a partition instead of indirection through a function.