Fixed 'Extract to file' functionality issues due to deprecated method calls.