Moved all the logic to the separated class - Monolog\Registry