refactor(extract): refactor extract module