Removes context from getport call, as it is not used anymore.