Refactoring extreure constant potencia