[C++] removed code duplication in CapabilitiesRegistrar::remove
[C++] removed code duplication in CapabilitiesRegistrar::remove

Change-Id: I3d9d820922f132b92997864e08c691d2cb16ed89

bmwcarit/joynr,clive-jevons/joynr,clive-jevons/joynr,clive-jevons/joynr,clive-jevons/joynr,clive-jevons/joynr,bmwcarit/joynr,bmwcarit/joynr,bmwcarit/joynr,bmwcarit/joynr,clive-jevons/joynr,bmwcarit/joynr,bmwcarit/joynr,bmwcarit/joynr,bmwcarit/joynr