Add a generic lambda toggler and refactor roletoggler to use it.