Make autoproxy feature independ on proxy implementation.