Refactor the #build_model method, by introducing a helper method to fetch or initialize the model based on its parent's persistence state.