Put Border code into separate files and typedef'd BorderPtr shared pointer type.