Getting the error "Can't rename a table because it is published for replication" while it's not
sp_droparticle will probably do the trick. Details: https://msdn.microsoft.com/en-us/library/ms173832(v=sql.105).aspx