Move Q dependency to utils library