Are you trying to say that two things can't have two final purposes, otherwise they would be two different things?
Like my supercar (theoretically) would either have a final purpose of transportation, or getting me easy sex, but not both?
Whats wrong with saying that the Ice Wall has actually just been an Ice Battery all along and the battery part was its main purpose, and that the holding back of the oceans was just an intrinsic function?