Factor out Android-dependent logic from Category and Type enums for server use.