Replace util dict by utility lambda functions