Extracting Security code into component