Removes unused parameters.
Removes unnecessary return statement.
Refactors export_to_xlsx method.
Fixes tests for exporting.