With due regard for the principle of equality, the rules relating to the allocation and exercise of powers applicable to a category of territorial authorities may be differentiated to take account of objective differences in the situations in which territorial authorities falling within the same category find themselves, provided that the resulting difference in treatment is proportionate and in relation to the purpose of the law establishing it.