Revert "[KARAF-3251] Workaround as deployer feature requires spring (ignoring the condition)"

This reverts commit 058ab718a7aa2f8e6df78f42021e64d91272fae7.