refactor: use object destructuration in worker message listener