AIS-24 refactored packet handler into separate file