Remove unnecessary function calls.