Capacitor method refactoring