Refactor so that the irssi log processing only happens in one place.