Moved normalization factor definition inside the main class