If the UK wants to remain part of the single market - and I guess it does - then the UK will be retaining the vast majority of EU legislation even if it leaves the EU, because most of it is about single market regulation. The UK just won't retain its influence on creating it.
Nate
This is a possibility. I don't think they will leave the EU though, but these items are what will be aimed for.