Move inner constructor out.