Removed linking function

The linking function's logic was moved to a controller