Separate preprocessing and clustering in different methods.