Eliminate functions that are no longer needed