Refactoring of the PureMVC framework