The courtroom set is the courtroom they use on How to Get Away with Murder.
Using a song of Prince was most likely a tribute to the artist, who passed away a few weeks before the episode aired.
There is a scene where both of Arizona's legs are showing. While some may consider it a goof, in Season 9 Episode 18, Arizona gets a prosthetic leg that works with heels.
When Meredith mentions how Sophia has a whole village, she says the same thing about herself in S12 E10 during the conversation with her psychiatrist
This episode's title originated from the song Mama Tried, originally sung by Merle Haggard.