Trim off some pointless function calls.