Refactored part of defsbar