Split off likelihood computation.