Refactoring: Extract methods and classes used for performance/sql logging into separate package