Moved variance calculation to Stock domain