Common utils for Project Shale