owl2_leancop: code refactored