Moved excel export code to function and removed unnecessary pojo class.