There is a lot of similarity between this function and the LC done in `seed_data()`. Refactor?