refactoring Logtalk files