Refactored karaf features