Refactored usage of FenixEdu API to external module.