libtorc-core: Use factory classes for the power implementation