move bucket data type to utils b/c it's not really related to serialize_
get rid of dependency injection logic in serialize_statewide