Externalize seurity class to common utils