Extracted helper methods from LocalSpace into LocalSpaceBasisHelpers. Helper methods are not extension methods (nothing suitable to extend) instead they take fields by ref/out parameters.

Signed-off-by: Martin Evans <martindevans@gmail.com>