Introduced forward declaration of newly introduced functions during the refactoring extract function to prevent compile errors because of forward references in the extracted function statements.