Workable refactoring into a module of a concave hull algorithm.