Revert "Dirty hack for removal of document category"

This reverts commit bbd17f512466c10ae0a9b279d9ff4f4afe91e964.