Replaced the long form anon function in extract-categories with shorter special form. Thus all the statements in extract-categories use a more consistent form.