code to use it This will help ease the process of implementing new formats in the future and remove duplicated code.