The Formulation of the Formation Energy of a Vacancy as an Alloy Problem