move a common util function to creduce_utils
enable binary removal of unused functions