Split up the objective function.