Switches adapter to a simple function reference (instead of a class reference)