Add links via edit page

Because of nested forms, I cannot pass a form object via ajax. I am auto-loading 3 blank link partials everytime someone edits their package
What about extracting this to a method? Maybe `number_of_links_left`?