clear out opts so it isn't kept alive by the block to define_method