DRY, it should be separated to a separate method.