The big rule to remember is that grammar is intended to make communication clear and free of misunderstanding. "Yes it's" isn't even close to being clear.
When you use a pronoun (in this case, the 's) the listener/reader needs to be clear about what it refers to.