remove direct references to category field