Refactoring of SWRL built-in invocation