Legalizing Honda 50

Iv done that for past ATV’s but never anything street legal. Technically its a 50cc bike, but its more of a sleeper with 140cc swapped and yes it will do over 40mph.