refactor Amorphous model plugin