Refactoring EAN again, put barcode calculations to base class