First steps to refactor Wilson's algorithm