Convert reference options to multidemensional array for better interface with edit page modal