Remove unused function handle_message