Refactor to instance Schema and prototype methods