Refactor functions on stops into 'module'.