Workaround generic lambda (C++14) limitation and remove guard.