Split off conditions into private functions