Remove unnecessary function invocation