Move bucket types related functions from rt module to rt_bucket_types.