Moving extension methods to a separate namespace; closes #311