Lotus::Environment refactoring: extract private method for better readability
Make Lotus::Environment thread-safe