Remove keyfilter and keyfoldl and use Object.keys, filter, and reduce instead