Fix 'Extract to file' functionality due to deprecated method calls.