Simplify callbacks logic: no more necessity to pass  variable to lambda
DRY configuration variables