Regularising dysfunctional settlements