Reorganizing security lib into its own folder