Refactor to support Ruby Motion projects