Refactoring/optimisation of free parking lines