Move categories code to geminiani