Move library engine in a dedicated class.