remove usage of logging from Patterns