Tesla doesn't really have a big investment in battery technology, Panasonic owns the technology and manufacturing process IP. What Tesla is investing in with the Gigafactory is taking economy of scales to the extreme (Musk has freely said as much publicly). That's not something which is difficult for others to replicate once it's proven to be a profitable venture.