Towards a unification of second-order theory for likelihood and marginal composite likelihood