Move in static class the SOQL bypass trigger

Delete from trigger the SOQL bypass trigger and put it in a static
class.